$OpenBSD: patch-chrome_app_chrome_main_cc,v 1.7 2017/04/28 22:22:36 robert Exp $
--- chrome/app/chrome_main.cc.orig.port	Fri Apr 28 23:56:27 2017
+++ chrome/app/chrome_main.cc	Fri Apr 28 23:57:42 2017
@@ -8,6 +8,8 @@
 #include "base/time/time.h"
 #include "build/build_config.h"
 #include "chrome/app/chrome_main_delegate.h"
+#include "base/command_line.h"
+#include "content/public/common/content_switches.h"
 #include "chrome/common/chrome_switches.h"
 #include "chrome/common/features.h"
 #include "content/public/app/content_main.h"
@@ -55,7 +57,12 @@ int ChromeMain(int argc, const char** argv);
 #if !defined(CHROME_MULTIPLE_DLL_CHILD)
 static void trace_url_request(const std::string &caller, const GURL &url)
 {
-	iridium::log_url_request(caller, url);
+        base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
+        if (!command_line->HasSwitch(switches::kTrk))
+                return;
+
+        iridium::log_url_request(caller, url);
+
 	if (url.scheme() != url::kTraceScheme)
 		/* Do not show infobar for non-trk URLs */
 		return;
